home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / ptv1n4.arc / TSRMEM1.ASM < prev    next >
Assembly Source File  |  1990-09-13  |  1KB  |  48 lines

  1. _TEXT   SEGMENT BYTE PUBLIC 'CODE'
  2. _TEXT   ENDS
  3. _DATA   SEGMENT BYTE PUBLIC 'DATA'
  4. _DATA   ENDS
  5.  
  6. ; Class BSS is uninitialized data.
  7. _BSS    SEGMENT BYTE PUBLIC 'BSS'
  8. _BSS    ENDS
  9.  
  10. ; This segment is empty since all we need is its
  11. ; paragraph number.  By forcing it to align on a
  12. ; paragraph boundary, we safely skip any data that
  13. ; might be left in the last paragraph.
  14. _EODATA SEGMENT PARA PUBLIC 'BSS'
  15. _EODATA ENDS
  16.  
  17. _STACK  SEGMENT WORD PUBLIC 'STACK'
  18. _STACK  ENDS
  19.  
  20. ; Other segment declarations and grouping of
  21. ; segments other than those that are part of DGROUP.
  22. . . .
  23.  
  24. ; By the Microsoft segment ordering convention, the
  25. ; DGROUP group should always be at the end of the
  26. ; program.
  27. DGROUP GROUP _DATA, ..., _BSS, _EODATA, _STACK, ...
  28.  
  29. _TEXT   SEGMENT
  30.  
  31. ; Startup code, etc.
  32. . . .
  33.  
  34. ; Determine the segment address of next available
  35. ; paragraph.
  36. ; Segment address is returned in AX.
  37. _EndPrg PROC
  38.         mov     ax, _EODATA
  39.         ret
  40. _EndPrg ENDP
  41.  
  42. _TEXT   ENDS
  43.  
  44. ; Other segment definitions.
  45.         . . .
  46.  
  47.         END
  48.